package com.pro.start;

import com.pro.service.RegisterClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * Copyright C 四川众鹏科技有限公司
 * All right reserved.  ApplicationRunnerImpl
 * 创建者：aoneng 2022/9/16
 * Description:
 * 备注   : spring boot 启动结束后启动改方法
 * version:  V1.0
 * <author> - <version > - <time>  -    <desc>
 *
 * @author 敖能         V1.0       2022/9/16    完成基本功能
 */
@Component
public class ApplicationRunnerImpl implements ApplicationRunner {
    @Autowired
    private RegisterClientService registerServices;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        // 服务注册
        registerServices.register();
    }
}
